package com.component.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.component.domain.base.DataBase;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * @TableName m_channel
 */
@Data
@TableName("m_channel")
public class MChannel extends DataBase implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String channelname;

    /**
     * 
     */
    private String channelpath;

    /**
     * 
     */
    private String userid;

    /**
     * 
     */
    private Integer pid;

    @TableField(exist = false)
    private List<MChannel> childs;

    @TableField("isprivate")
    private Boolean isprivate;

    @TableField("modelId")
    private String modelId;

    @TableField("text_type")
    private String textType;

    private static final long serialVersionUID = 1L;

    public MChannel(Integer id,String channelname,String channelpath,Integer pid){
        this.id = id;
        this.channelname = channelname;
        this.channelpath = channelpath;
        this.pid = pid;
    }

    public MChannel(){

    }



}